]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Use correct handle size when calculating rightmost position
authorSebastian Keller <skeller@gnome.org>
Thu, 20 Feb 2025 22:31:05 +0000 (23:31 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 19 Mar 2025 20:44:08 +0000 (20:44 +0000)
commit8447292e7e186f79b8eb8627072d18b8eb459588
treea5b705eca60d170b166102b2d8f954a1d556f876
parent07ce2f1170c3b3037941a0b4221255675cc6a3a2
slider: Use correct handle size when calculating rightmost position

Using the ceiled radius for calculating the rightmost position the
handle can take on the slider was resulting in a small gap when the size
was not an integer value since the radius used when drawing the handle
is not ceiled.

This effectively reverts 38da479e which seems to have been the wrong fix
for the problem it was trying to solve. The problem presumably had been
caused by not considering the border that the handle still had at that
time.

The border issue was then later fixed by 3ddae9d8, without reverting
38da479e. Then in 6fd0aac8 support for drawing borders on the slider got
dropped, including the changes from 3ddae9d8, leaving us with just the
changes from 38da479e but now without borders on the handle.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8187
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3648>
js/ui/slider.js